<?php
/**
 * Created by PhpStorm.
 * User: Duke
 * Date: 2019/12/2
 * Time: 17:32
 */
namespace App\Http\Logic\admin;

use App\Model\ClockinModel;
use App\Model\UserModel;

class ClockinLogic{

    //获取全部列表
    public function AllList(){
        $model = new ClockinModel();
        $user = new UserModel();
        $clock = $model->getAllList();
        foreach($clock as $key => $value){
           $i = $user->find_info(['id'=>$value['uid']]);
           $clock[$key]['uid'] = $i['name'];
        }
        return $clock;
    }

}
